package com.imooc.pan.server.modules.user.mapper;

import com.imooc.pan.server.modules.user.context.QueryUserSearchHistoryContext;
import com.imooc.pan.server.modules.user.entity.RPanUserSearchHistory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.imooc.pan.server.modules.user.vo.UserSearchHistoryVO;

import java.util.List;

/**
* @author lenovo
* @description 针对表【r_pan_user_search_history(用户搜索历史表)】的数据库操作Mapper
* @createDate 2023-07-27 18:33:40
* @Entity com.imooc.pan.server.modules.user.entity.RPanUserSearchHistory
*/
public interface RPanUserSearchHistoryMapper extends BaseMapper<RPanUserSearchHistory> {

    /**
     * 查询用户最近 10 条搜索记录
     * @param context
     * @return
     */
    List<UserSearchHistoryVO> selectUserSearchHistories(QueryUserSearchHistoryContext context);
}




